package xyz.renyumeng.xkm.shop.service;

import com.baomidou.mybatisplus.extension.service.IService;
import xyz.renyumeng.xkm.dto.shop.ProductTypeDto;
import xyz.renyumeng.xkm.model.shop.ProductInfo;
import xyz.renyumeng.xkm.model.shop.ProductTypeInfo;
import xyz.renyumeng.xkm.result.Result;

import java.util.List;

/**
 * @author renyumeng
 * @date Created in 14:49 2023/7/1
 */
public interface ProductTypeInfoService extends IService<ProductTypeInfo> {
    Result<List<ProductTypeInfo>> getChildrenType(Long parentId);

    Result<Boolean> deleteTypeByIdWithProduct(Long typeId);

    Result<Boolean> updateTypeByIdWithProduct(ProductTypeDto productTypeDto);

    Result<Boolean> addType(ProductTypeDto productTypeDto);
}
